package com.firefighting.dao;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.firefighting.entity.ProprietorConnector;

public interface ProprietorConnectorMapper
{
    int deleteByPrimaryKey(Integer id);

    int insert(ProprietorConnector record);

    int insertSelective(ProprietorConnector record);

    ProprietorConnector selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ProprietorConnector record);

    int updateByPrimaryKey(ProprietorConnector record);
	
	//张晗 修改业主联系人
	void updateProConnector(int conId, int id);
	
	/*zhyan 查询所有的业主联系人*/
	@SuppressWarnings("rawtypes")
	List<HashMap> selectAllProprietorConnector();
	
	/** zhyan 根据业主id和联系人身份（业主联系人、现场联系人） 更新联系人信息*/
	int updateByProprietorIdAndIdentifySelective(ProprietorConnector record);
	
	/** zhyan 根据业主id和联系人身份查询联系人信息 */
	ProprietorConnector selectByProprietorIDAndIdentify(@Param("proprietorId") int proprietorId, @Param("identify") String identify);
	
	/** zhyan 根据业主id删除业主联系人 */
	int deleteByProprietorId(@Param("proprietorId") int id);
}